﻿using System;
using System.IO;

namespace Metro.Core
{
    public static class Logger
    {
        public static void Log(string s)
        {
            if (!File.Exists(E.LogDirectory + "\\log.txt"))
            {
                File.WriteAllText(E.LogDirectory + "\\log.txt", string.Empty);
            }
            try
            {
                File.AppendAllText(E.LogDirectory + "\\log.txt",
                                   DateTime.Now.ToString() + " -------------- " + s + (char)(13) + (char)(10));
            }
            catch
            {}
        }
    }
}